<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org/">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    request:
    <div>
        ID:<label th:text="${student1.id}"></label><br/>
        姓名:<label th:text="${student1.name}"></label><br/>
        年龄:<label th:text="${student1.age}"></label><br/>
    </div>
    session:
    <div>
        ID:<label th:text="${session.student2.id}"></label><br/>
        姓名:<label th:text="${session.student2.name}"></label><br/>
        年龄:<label th:text="${session.student2.age}"></label><br/>
    </div>
    application:
    <div>
        ID:<label th:text="${application.student3.id}"></label><br/>
        姓名:<label th:text="${application.student3.name}"></label><br/>
        年龄:<label th:text="${application.student3.age}"></label><br/>
    </div>
    <hr/>
    request:
    <div th:object="${student1}">
        ID:<label th:text="*{id}"></label><br/>
        姓名:<label th:text="*{name}"></label><br/>
        年龄:<label th:text="*{age}"></label><br/>
    </div>
    session:
    <div th:object="${session.student2}">
        ID:<label th:text="*{id}"></label><br/>
        姓名:<label th:text="*{name}"></label><br/>
        年龄:<label th:text="*{age}"></label><br/>
    </div>

    编号：<span th:text="${session?.user?.id}"></span>
    <br/>
    获取请求URL：<span th:text="${#request.getRequestURL()}"></span><br/>
    获取服务器信息：<span th:text="${#servletContext.getServerInfo()}"></span>
</body>
</html>